from datetime import datetime
day=input().split(',')
someday=datetime(int(day[0]),int(day[1]),int(day[2]),int(day[3]),int(day[4]))
a=someday.isoweekday()
print("这一天是星期{}".format(a))
b=someday.utcnow()
print("这一天的UTC时间是{}".format(b))
c=someday.strftime("%m月--%d日--%Y年，%H点%M分%p")
print("这一天是{}".format(c))
